﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Xml;
using System.Linq;
using System.Xml.Serialization;
using PFMGlobals;

namespace PFMConfigurations
{
    public class ScheduleManager : ConfigurationManager<Schedule>
    {
        #region 自己写的
        #endregion
        public ScheduleManager()
        {
            this.XmlFile = PFMDefinitions.CONFIGURATIONSDIR + @"\PFM-Schedule.XML";
        }
        public override Schedule GetItem(object id)
        {
            if (id is Guid && Items != null)
                return Items.First(x => x.TargetID.Equals(id));
            else
                return null;
        }
    }
}
